(function main(){
    const line = readline();
    return [...line].reverse();
})()